<?php

class Page {
/*    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="content-type">
  <title></title>
</head>
<body>
<br>
</body>
</html>
*/
    
    
    var $title;
    var $head;
    var $body;
    
    function Page($title){
        $this->title=$title;
    }
    
    function execute(){
        echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
        echo '<head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">';
        echo ' <title>'.$this->title.'</title>';
        echo $this->head;
        echo '</head>';
        echo '<body>';
        echo $this->body;    
        echo '</body>';
        echo "</html>";
    }    
    
    function getHead(){
        return $this->head;
    }
    
    function getBody(){
        return $this->body;
    }
    function setHead($headContent){
        $this->head=headContent;
    }
    function setBody($bodyContent){
        $this->body=$bodyContent;
    }
       
}
?>